import { createApp } from 'vue'
import { createI18n } from 'vue-i18n'
import Antd from 'ant-design-vue'
import App from './App.vue'

import store from './store'

import router from './router/index'

import './assets/public.less'
import 'ant-design-vue/dist/antd.less'
import svgIcon from '@/components/Base/svgIcon.vue'

import enUS from './locales/enUS.json'
import zhCN from './locales/zhCN.json'
 
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css' 

import axios from './api/request';
import VueAxios from 'vue-axios';
 
const i18n = createI18n({
  locale: 'zhCN',
  messages: {
    enUS,
    zhCN
  }
})

const app = createApp(App)
app.config.productionTip = false;
// app.use(Antd)
app.use(ElementPlus, { size: 'small', zIndex: 3000  }).component('svg-icon', svgIcon).use(i18n).use(store).use(router).use(VueAxios, axios).mount('#app')